import datetime

USERNAME = 'root'
PASSWORD = 'root'
DB = 'oa'
HOST = '127.0.0.1'
PORT = 3306
SQLALCHEMY_DATABASE_URI = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DB}?charset=utf8'

MAIL_SERVER = 'smtp.qq.com'
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = '179765851@qq.com'
MAIL_PASSWORD = 'tggfniebivpcbieb'
MAIL_DEFAULT_SENDER = '179765851@qq.com'

JWT_SECRET_KEY = 'liutfeizi'
JWT_ACCESS_TOKEN_EXPIRES = datetime.timedelta(hours=1)
JWT_REFRESH_TOKEN_EXPIRES = datetime.timedelta(minutes=15)

UPLOAD_FOLDER = 'tmp/'